package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人脉管理对象 tr_pson
 * 
 * @author ruoyi
 * @date 2024-05-26
 */
@Data
public class TrPson extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 关系
     *
     */
    private String gxName;


    /** 人脉id */
    private Long psonId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String psonName;

    /** 性别 */
    @Excel(name = "性别")
    private String psonSex;

    /** 相关部门 */
    @Excel(name = "相关部门")
    private Long deptId;

    /** 所属关系 */
    @Excel(name = "所属关系")
    private String gxDeptId;

    /** 详情 */
    @Excel(name = "详情")
    private String psonInfo;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateBirth;

    /** 照片url */
    @Excel(name = "照片url")
    private String photoUrl;

    /** 文件url */
    @Excel(name = "文件url")
    private String fileUrl;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String psonPhone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String psonEmail;

    /** 地址 */
    @Excel(name = "地址")
    private String psonAddress;

    public void setPsonId(Long psonId) 
    {
        this.psonId = psonId;
    }

    public Long getPsonId() 
    {
        return psonId;
    }
    public void setPsonName(String psonName) 
    {
        this.psonName = psonName;
    }

    public String getPsonName() 
    {
        return psonName;
    }
    public void setPsonSex(String psonSex) 
    {
        this.psonSex = psonSex;
    }

    public String getPsonSex() 
    {
        return psonSex;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setPsonInfo(String psonInfo)
    {
        this.psonInfo = psonInfo;
    }

    public String getPsonInfo() 
    {
        return psonInfo;
    }
    public void setDateBirth(Date dateBirth) 
    {
        this.dateBirth = dateBirth;
    }

    public Date getDateBirth() 
    {
        return dateBirth;
    }
    public void setPhotoUrl(String photoUrl) 
    {
        this.photoUrl = photoUrl;
    }

    public String getPhotoUrl() 
    {
        return photoUrl;
    }
    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }
    public void setPsonPhone(String psonPhone) 
    {
        this.psonPhone = psonPhone;
    }

    public String getPsonPhone() 
    {
        return psonPhone;
    }
    public void setPsonEmail(String psonEmail) 
    {
        this.psonEmail = psonEmail;
    }

    public String getPsonEmail() 
    {
        return psonEmail;
    }
    public void setPsonAddress(String psonAddress) 
    {
        this.psonAddress = psonAddress;
    }

    public String getPsonAddress() 
    {
        return psonAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("psonId", getPsonId())
            .append("psonName", getPsonName())
            .append("psonSex", getPsonSex())
            .append("deptId", getDeptId())
            .append("gxDeptId", getGxDeptId())
            .append("psonInfo", getPsonInfo())
            .append("dateBirth", getDateBirth())
            .append("photoUrl", getPhotoUrl())
            .append("fileUrl", getFileUrl())
            .append("psonPhone", getPsonPhone())
            .append("psonEmail", getPsonEmail())
            .append("psonAddress", getPsonAddress())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
